package highlight_spring4.domain;

/**
 * @ClassName DemoObj
 * @Package highlight_spring4.domain
 * @Description TODO
 * @Author zjb
 * @Date 2018/7/24 19:00
 * @Version 1.0
 **/

public class DemoObj {
    private Long id;
    private String name;

    //jackson对对象和json做转换时一定需要此空构造
    public DemoObj() {
        super();
    }

    public DemoObj(Long id, String name) {
        super();
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
